const fs = require('node:fs')
const path = require('node:path')
const axios = require('axios')
const FormData = require('form-data')

const rootPath = path.resolve(__dirname, '..')

module.exports = {
    /** ---- 自动发布工具 ---- */
    autoDeploy: {
        root_path: rootPath, // 项目根目录
        apps: {
            default: {
                // 开发环境
                dev: {
                    // 远程命令
                    remote_cmd: {
                        cwd: '/www/wwwroot/xxx.xxx.com/public/admin',
                        cmd: 'git pull origin master && php think optimize:schema'
                    },
                    server: {
                        host: 'xxx.xxx.com',
                        username: 'root',
                        password: 'xxxxxx',
                    }
                },
            },
        },
    },

}
